From: Timm Bäder Date: Mon, 20 Mar 2017 13:16:56 +0000 (+0100) Subject: box: Make sure center_req is initialized X-Git-Tag: archive/raspbian/3.24.39-1+rpi1~1^2~65^2~39^2~680 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=1daa41bf962c473106c236d75aa7149a8a25757e;p=gtk%2B3.0.git box: Make sure center_req is initialized In case we have an invisible center widget, we never initialize it, but later still use it. --- diff --git a/gtk/gtkbox.c b/gtk/gtkbox.c index e39eb495a5..e034be851b 100644 --- a/gtk/gtkbox.c +++ b/gtk/gtkbox.c @@ -830,7 +830,7 @@ gtk_box_size_allocate_with_center (GtkWidget *widget, GtkTextDirection direction; GtkAllocation child_allocation; GtkRequestedSize *sizes[2]; - GtkRequestedSize center_req; + GtkRequestedSize center_req = {0, 0}; gint child_minimum_baseline, child_natural_baseline; gint minimum_above, natural_above; gint minimum_below, natural_below;